package pharao.domain;

import java.util.Collection;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;

@Entity
public class Landkarte {

	/**
	 * @uml.property   name="collectionOrte"
	 * @uml.associationEnd   multiplicity="(1 -1)" aggregation="composite" inverse="landkarte:pharao.domain.Ort"
	 */
	private Collection<Ort> collectionOrte;

	/**
	 * id der Landkarte
	 * @uml.property  name="id"
	 */
	private int id;

	/**
	 * @uml.property  name="user"
	 * @uml.associationEnd  inverse="landkarte:pharao.domain.User"
	 */
	private User user;

	/**
	 * Getter of the property <tt>collectionOrte</tt>
	 * @return  Returns the collectionOrte.
	 * @uml.property  name="collectionOrte"
	 */
	@OneToMany
	public Collection<Ort> getCollectionOrte() {
		return collectionOrte;
	}

	/**
	 * Getter of the property <tt>id</tt>
	 * @return  Returns the id.
	 * @uml.property  name="id"
	 */
	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}

	/**
	 * Getter of the property <tt>user</tt>
	 * @return  Returns the user.
	 * @uml.property  name="user"
	 */
	@OneToOne
	public User getUser() {
		return user;
	}

	/**
	 * Setter of the property <tt>collectionOrte</tt>
	 * @param collectionOrte  The collectionOrte to set.
	 * @uml.property  name="collectionOrte"
	 */
	public void setCollectionOrte(Collection<Ort> collectionOrte) {
		this.collectionOrte = collectionOrte;
	}

	/**
	 * Setter of the property <tt>id</tt>
	 * @param id  The id to set.
	 * @uml.property  name="id"
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * Setter of the property <tt>user</tt>
	 * @param user  The user to set.
	 * @uml.property  name="user"
	 */
	public void setUser(User user) {
		this.user = user;
	}

}
